#region (c) 2009 Abdullin.com and Contributors

// Copyright (c) 2009 Abdullin.com and Contributors
// Site: http://abdullin.com/ncouch
// This code is released under the terms of the new BSD licence

#endregion

using Lokad.Quality;

namespace NCouch.Model
{
	[Immutable]
	public sealed class View<TKey, TValue>
	{
		public readonly int RowCount;
		public readonly int Offset;
		public readonly Row<TKey, TValue>[] Rows;

		/* "total_rows": 3,
"offset": 0,
"rows":*/


		public View(int total_rows, int offset, Row<TKey, TValue>[] rows)
		{
			RowCount = total_rows;
			Offset = offset;
			Rows = rows ?? new Row<TKey, TValue>[0];
		}
	}
}